package com.csqf.booksys.entity;

import java.util.Date;

/**
 * @author enbo.xie
 * @Date 2020年8月12日 下午4:08:57
 */
public class Book {
	private Integer bid;
	private String name;
	private String author;
	private String publish;
	private double price;
	private Date crtTime;

	public Book() {
		
	}
	/**
	 * @param bid
	 * @param name
	 * @param author
	 * @param publish
	 * @param price
	 * @param crtTime
	 */
	public Book(Integer bid, String name, String author, String publish, double price, Date crtTime) {
		super();
		this.bid = bid;
		this.name = name;
		this.author = author;
		this.publish = publish;
		this.price = price;
		this.crtTime = crtTime;
	}

	/**
	 * @return the bid
	 */
	public int getBid() {
		return bid;
	}

	/**
	 * @param bid
	 *            the bid to set
	 */
	public void setBid(int bid) {
		this.bid = bid;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the author
	 */
	public String getAuthor() {
		return author;
	}

	/**
	 * @param author
	 *            the author to set
	 */
	public void setAuthor(String author) {
		this.author = author;
	}

	/**
	 * @return the publish
	 */
	public String getPublish() {
		return publish;
	}

	/**
	 * @param publish
	 *            the publish to set
	 */
	public void setPublish(String publish) {
		this.publish = publish;
	}

	/**
	 * @return the price
	 */
	public double getPrice() {
		return price;
	}

	/**
	 * @param price
	 *            the price to set
	 */
	public void setPrice(double price) {
		this.price = price;
	}

	/**
	 * @return the crtTime
	 */
	public Date getCrtTime() {
		return crtTime;
	}

	/**
	 * @param crtTime
	 *            the crtTime to set
	 */
	public void setCrtTime(Date crtTime) {
		this.crtTime = crtTime;
	}

	@Override
	public String toString() {
		return "Book [bid=" + bid + ", name=" + name + ", author=" + author + ", publish=" + publish + ", price="
				+ price + ", crtTime=" + crtTime + "]";
	}
	
}
